package com.gopay.scheduler.dao;

import java.util.List;

import com.gopay.common.base.dao.BaseReadDAO;
import com.gopay.common.domain.cps.CpsGenMainOrder;

public interface CpsGenMainOrderReadDao extends BaseReadDAO<CpsGenMainOrder, String> {

    /**
     * 查找订单根据订单创建时间，订单处理码  
     * @return
     */
    public List<CpsGenMainOrder> findTimeoutOrdersByCreateTimeAndProcessCode(String procCode);
    
    /**
     * 根据交易状态查询主订单数据
     * @param array
     * @return
     */
	public List<CpsGenMainOrder> findTimeoutBounsOrdersByCreateTime(String txnStaCode);
	
	/**
	 * 查询天溢赢超时订单
	 * @param txnStaCd
	 * @return
	 */
	public List<CpsGenMainOrder> findTimeoutTyyOrdersByCreateTimeAndProcessCode(String txnStaCd);
	/**
	 * 查询天溢赢银行回应超时订单
	 * @param txnStaCd
	 * @return
	 */
	public List<CpsGenMainOrder> findBankTimeoutTyyOrdersByCreateTimeAndProcessCode(List<Integer> txnStaCodeList);
	
}
